<?php
/**
 * Created by 荣耀电竞.
 * User: 林子彦 <278805354@qq.com>
 * Date: 2018/6/29 0029
 * Time: 9:59
 */
namespace App\Shop\Controllers;
use App\Base\Controllers\Controller;
use App\Shop\Contracts\GoodsInterface;
use Illuminate\Http\Request;

class GoodsController extends Controller
{
    /**
     * 获取产品接口操作类
     * @return GoodsInterface
     */
    public function getGoodsInterface()
    {
        return app()->make(GoodsInterface::class);
    }

    /**
     * 产品详细页
     * @param Request $request
     * @return $this
     */
  public function index(Request $request){

         $goodsInfo=$this->getGoodsInterface()->getGoodsInfo(["goods_id"=>42]);
         return view("goods.web_index")->with("goods",$goodsInfo);
          //return view("admin.goods.web_index")->with("goods",$goodsInfo);
  }

  public function goodInfo(){

  }

}